﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using MaymuseMS.Models.ValueObject;

namespace MaymuseMS.Models {
    public class Supplier {

        public int SupplierId { get; set; }

        [Required]
        [MaxLength(100)]
        public string Number { get; set; }

        //[Required]
        [MaxLength(100)]
        public string Name { get; set; }

        [MaxLength(100)]
        public string WebSiteUrl { get; set; }



        [MaxLength(5000)]
        public string Remark { get; set; }

        public virtual Contacts Contacts { get; set; }
        public virtual Bank Banks { get; set; }

        public virtual IList<SupplierUser> SupplierUsers { get; set; }
    }
}